package com.zd.service.impl;

import com.zd.mapper.ScaleMapper;
import com.zd.model.Scale;
import com.zd.service.IScaleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScaleServiceImpl implements IScaleService {

    @Autowired
    private ScaleMapper scaleMapper;

    @Override
    public List<Scale> selectScaleInfo() {
        return scaleMapper.selectScaleInfo();
    }

    @Override
    public Scale selectByPrimaryKey(int id) {
        return scaleMapper.selectByPrimaryKey(new Long(id));
    }
}
